// 店铺相关的
import request from '@/utils/request'

/*
* 获取店铺列表查询
*/
export const getShops = params => {
  return request({
    method: 'GET',
    url: '/shops',
    params
  })
}

/*
* 根据id查询店铺送货方式
*/
export const getShopDetails = data => {
  return request({
    method: 'GET',
    url: `/shop/${data}`
  })
}

/*
* 获取某个店铺的商品
*/
export const getgoods = params => {
  return request({
    method: 'GET',
    url: '/goods',
    params
  })
}
